#include "socket.h"
#include <iostream>
#include <string>

int main()
{
    TCP_CLient_Socket s;
    string message;

    s.send_message("hello\n");
    //cout << s.rece_message() << endl;
    s.rece_message();
    while (1)
    {
        cout << "Enter message: ";
        cin >> message;
        s.send_message(message);
        //cout << s.rece_message() << endl;
        s.rece_message();
        if (message == "exit")
            break;
    }
    return 0;
}